package com.ruoyi.violate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.violate.mapper.ViolateCatalogueMapper;
import com.ruoyi.violate.domain.ViolateCatalogue;
import com.ruoyi.violate.service.IViolateCatalogueService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-03
 */
@Service
public class ViolateCatalogueServiceImpl implements IViolateCatalogueService 
{
    @Autowired
    private ViolateCatalogueMapper violateCatalogueMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ViolateCatalogue selectViolateCatalogueById(String id)
    {
        return violateCatalogueMapper.selectViolateCatalogueById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param violateCatalogue 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ViolateCatalogue> selectViolateCatalogueList(ViolateCatalogue violateCatalogue)
    {
        return violateCatalogueMapper.selectViolateCatalogueList(violateCatalogue);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param violateCatalogue 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertViolateCatalogue(ViolateCatalogue violateCatalogue)
    {
        return violateCatalogueMapper.insertViolateCatalogue(violateCatalogue);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param violateCatalogue 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateViolateCatalogue(ViolateCatalogue violateCatalogue)
    {
        return violateCatalogueMapper.updateViolateCatalogue(violateCatalogue);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteViolateCatalogueByIds(String[] ids)
    {
        return violateCatalogueMapper.deleteViolateCatalogueByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteViolateCatalogueById(String id)
    {
        return violateCatalogueMapper.deleteViolateCatalogueById(id);
    }
}
